package com.linux4fun.utils;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class FileTool {
    public static void main(String[] args) throws IOException {
        String srcDir = "/home/pengkai/tmp/c_demo/";
        String destDir = "/home/pengkai/tmp/myNewDir/";
        FileUtils.copyDirectory(new File(srcDir), new File(destDir));
    }
}
